package com.ljx.itbbs.server.article.domain.vo.resp;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @Author: LiJunXi
 * @Description:
 * @Date: 2024-03-28  15:17
 */
@Data
public class ResourcesResp {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty("资源ID")
    private Long id;

    @ApiModelProperty("文章ID")
    private Long articleId;

    @ApiModelProperty("文件名称")
    private String filename;

    @ApiModelProperty("文件大小")
    private Long filesize;

    @ApiModelProperty("是否免费（1：收费，2：免费）")
    private Integer isFree;

    @ApiModelProperty("所需积分")
    private Integer integral;

    @ApiModelProperty("文件类型")
    private String fileType;

    @ApiModelProperty("下载次数")
    private Integer downloadNum;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("是否有权限下载")
    private Boolean hasPerms;

}
